package cn.rgb.orm;

import java.io.IOException;

import cn.rgb.orm.config.SqlMapConfig;
import cn.rgb.orm.impl.SqlExecutorImpl;
import cn.rgb.orm.parser.SqlMapConfigParser;

public class SqlExecutorBuilder {

	public static SqlExecutor buildSqlExecutor(String path) throws IOException {
		SqlMapConfigParser parser = new SqlMapConfigParser();
		SqlMapConfig sqlMapConfig = parser.parse(path);
		return new SqlExecutorImpl(sqlMapConfig);
	}
	
}
